import Home from '@/pages/home'
import RegisterAndLogin from '@/pages/registerAndLogin'
import UserCenter from '@/pages/userCenter'

export default [
    {
        path:'*',
        redirect:'/home'
    },
    {
        name:'home',
        path:'/home',
        component:Home
    },
    {
        name:'registerAndLogin',
        path:'/registerAndLogin/:operation',
        component:RegisterAndLogin
    },
    {
        name:'usercenter',
        path:'/usercenter',
        component:UserCenter
    },
    {
        name:'test',
        path:'/test/:operation',
        component:()=> import('@/pages/test')
    },
    {
        name:'map',
        path:'/map',
        component:()=> import('@/components/map')
    },
    {
        name:'updateRoleInfo',
        path:'/updateRoleInfo/:roleInfo',
        component:()=>import('@/components/updateRoleInfo')
    }
]